<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>美食照片查看页</title>
<link href="<?php echo SITE_URL?>img/ggCSS.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="989" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="18">&nbsp;</td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1%" align="left" background="<?php echo SITE_URL?>img/photo/photo-view_r1_c2.jpg"><img src="<?php echo SITE_URL?>img/photo/photo-view_r1_c1.jpg" width="9" height="186" /></td>
    <td width="98%" background="<?php echo SITE_URL?>img/photo/photo-view_r1_c2.jpg">
    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
      	<?php
      		$imgArray = explode('|',$food->getImg());
			foreach ($imgArray as $key => $v):
			$imgSize = getimagesize(SITE_URL.'uploads/'.$v);  		 
      	?>
        <td align="center">
        <a href="/food/img?id=<?php echo $id?>&pid=<?php echo $key+1?>">
        	<img src="<?php echo SITE_URL.'uploads/'.$v?>" 
      		<?php
      			if($imgSize['0'] > 134){
      				echo 'width="150"';
      			}
      			if($imgSize['1'] > 95){
      				echo 'height="113"';
      			}
      		?> class="imghuise" />
      	</a>
        </td>
        <?php endforeach;?>
      </tr>
    </table></td>
    <td width="1%" align="right" background="<?php echo SITE_URL?>img/photo/photo-view_r1_c2.jpg"><img src="<?php echo SITE_URL?>img/photo/photo-view_r1_c8.jpg" width="8" height="186" /></td>
  </tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="<?php echo SITE_URL?>img/photo/photo-view_r5_c1.jpg" width="989" height="9" /></td>
  </tr>
</table>
<table width="989" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td background="<?php echo SITE_URL?>img/photo/photo-view_r7_c1.jpg">&nbsp;</td>
  </tr>
  <tr>
    <td align="center" background="<?php echo SITE_URL?>img/photo/photo-view_r7_c1.jpg">
    	<img src="<?php echo SITE_URL.'/uploads/'.$imgArray[$pid-1]?>" width="906" height="644" class="imghuise" />
    </td>
  </tr>
  <tr>
    <td background="<?php echo SITE_URL?>img/photo/photo-view_r7_c1.jpg">&nbsp;</td>
  </tr>
</table>
<table width="989" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="<?php echo SITE_URL?>img/photo/photo-view_r11_c1.jpg" width="989" height="10" /></td>
  </tr>
</table><table width="989" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="18">&nbsp;</td>
  </tr>
</table>
<table width="988" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="7"><img src="<?php echo SITE_URL?>img/photo/photo-view_r13_c1.jpg" width="988" height="7" /></td>
  </tr>
</table>
<table width="988" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="28" background="<?php echo SITE_URL?>img/photo/photo-view_r14_c1.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="30" class="tit">照片说明</td>
      </tr>
      <tr>
        <td><?php echo $food->getDes()?></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="988" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="6"><img src="<?php echo SITE_URL?>img/photo/photo-view_r16_c1.jpg" width="988" height="6" /></td>
  </tr>
</table>
<table width="989" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="18">&nbsp;</td>
  </tr>
</table>
</body>
</html>
